<template>
    <div>
        <Button type="primary" size="small" @click="edit"><Icon type="edit"></Icon>修改</Button>
        <Button type="info" size="small"><Icon type="eye"></Icon>查看</Button>
        <Button type="error" size="small" @click="doDelete"><Icon type="trash-a"></Icon>删除</Button>
    </div>
</template>

<script>
    export default {
        props:{
            "item":{
                type:Object,
                required:true
            }
     },
        methods:{
          edit () {
              alert('edit')
              console.log(this.item)
          },
          doDelete (){
                alert('delete')
            }
        }


    }
</script>